Only the earnings are taxable in the year you made the excess contribution. If you made an excess contribution in 2024 and withdrew the 2024 excess Roth IRA contribution plus earnings (or minus loss) in 2025 before the due date, then you will get a 2025 Form 1099-R in 2026 with codes P and J.
You can add this 2025 Form 1099-R now an TurboTax with add an explanation statement to your 2024 return.
To enter a 2025 Form 1099-R in your 2024 return please follow the steps below:
Please be aware, code P will say in the drop-down menu "Return of contribution taxable in 2023" but you can ignore that since the follow-up question will tell TurboTax that it will be taxable in 2024.
Also make sure you indicate in the IRA contribution interview that you withdrew the excess contribution by the due date: