Made an excess Roth contribution in 2022. Just now discovered it while doing 2023 return. What is easiest and cheapest way to fix this.

I know excess needs to be removed but can it be applied to 2023 without the 6% penalty.  Do I need to file an amended 2022 return since I never entered the contribution in the first place, otherwise TT would have told me over the income limit.  Got the 5498 for 2022 showing the contribution though.