In the My Info section of the program you are asked to enter your Resident state which is where you lived on 12/31/2023. You are also asked if you lived in any other state or made money in any other state, all refers to 2023.
Click on My Info on the left side of the online program screen to review your answers
What you enter for the mailing address on the tax return has no bearing on where you live, only where you receive your mail.