In your Federal return, go to the Deductions and Credits > Estimates and Other Taxes Paid > Other Income Taxes section and click Start or Update.
Then, scroll to 2023 Refund Applied to 2024 and there is a section for both Federal and state refunds applied to 2024 taxes.