Tax issue regarding moving to another state

We moved to WA from AZ during this year and plan to live in WA. Now, my husband is working remotely in WA for the same company in AZ.  My questions are:

1. The AZ company continues withdrawing tax in W-2. and I  heard WA has no state tax. Do we only need to pay tax to AZ for the months we live in AZ? or pay AZ tax for the whole year?

2.  If we only pay tax for the months live in AZ,  how to end the AZ company continue withdrawing tax in W-2? Thank you.