Opened IRA last year then changed mind a month later and closed it. Do I amend the 2022 return or what?

After I opened the account last year, a couple of weeks later I spoke with someone and asked them to refund it back to my bank account and close it. But now this year I see they sent me a 1099-R. My 2022 shows the amount I put on last year's return on Form 1040, line 20. I didn't see where it decreased my tax last year after I opened it. I don't want the IRA and so what to do now? Should I amend my 2022 personal return? What is the effect of this 1099-R which shows the total amounts put in and taken out on lines 1 and 2a of that 1099-R ?