You will need to file a Part Year resident return. This will allow you to select the dates you lived in the state so you won't be penalized for the time you did not live in the state.
To trigger the state Part-Year form, you just need to go back to the Personal Info section, then say yes to I lived in another state in 2021 and select Foreign or US Possession.