OH, that's a no-no!!! You cannot file 2 tax year returns in one return. That would cause you a major headache with the IRS and a chore to correct. Each year's income would require its own tax year return.
If you want to use TurboTax for the 2023 return, you can purchase the 2023 desktop software at this page and install it on your computer.
https://turbotax.intuit.com/personal-taxes/past-years-products/
The 2023 return cannot be efiled with TurboTax. It will have to be printed, signed, dated, and mailed.