How to claim partial resident in a year

we are moving from Texas to Colorado in 2022 May, I want to withdraw from my IRA also next year before the move to avoid Colorado state tax.  What are the steps to ensure that I can claim Texas residency in April 2022, when I withdraw??