Recouping prior year Long Term capital gains against current year Long Term capital loss.

We expect $200,000 in Long Term capital gains for 2023.

We also expect $50,000 Long Term capital loss in 2024.

Taxable income for both years is approximately the same.

Assume the laws don't change for 2024.

Can we recoup captial gains tax paid on 2023 return when we file our 2024 taxes?

Will we have to do an amended return for 2023 or will turbotax programming address this?