If you are asking about file a part-year resident state tax return, please see the instructions below.
If
You Moved: You will file a tax return as a part-year resident for each
state. It's a good idea to prepare the state you moved
"from" prior to the state to which you moved so you can get any
applicable credits for taxes paid to the other state (assuming both states have
income taxes)
How do I file if I moved to a different
state last year?
https://ttlc.intuit.com/replies/3302342