HSA contribution 2023

I am planning to do additional HSA contribution before April 15, 2024 for financial year 2023. Do I have to wait to file my tax return until the contribution transaction go through? Or I can file federal and state tax after entering amount before actual transaction complete?