After you file

If you have an offset the IRS will take the refund to satisfy the debt ... if there is  any left over they will send the rest.