I contributed $6500 to Roth IRA in 2023, but only made $3500. Filed excess contribution with Fidelity which will generate 1099 in May. How do I handle 2023/2024 returns?

I have not filed my 2023 taxes yet. Wasn't sure which tax year deals with excess contribution. Excess contribution form filed Feb 28, 2024.