Business & farm

If I received my ERC Refund in 2023 for 2021's 941X's, do I amend my 2021's - 1120S income tax return, line 8, by the amount of the refund or do I deduct the amount from my 2023 - 1120S income tax return on line 8?  Thank you in advance.