Work in a different state than where i lived

I currently live in Alabama (May 2022 - Dec 2022) and worked for a company in Tennessee (no state income tax) until November 1, 2022, at which time I became employed by a company in Mississippi. I will not move to Mississippi until January 2023. How should I file (state) taxes? Thank you!!