After you file

If this is for a federal return do not enter anything in a State box.  No, just enter 0 in the refund applied to 2021.    A tax due or paid for prior years does not go on a 2021 return.