Alas, establishing residency is a bit more involved... you gotta actually go there, get a driver's license, register to vote, close bank accounts in NY and open them in X, etc...
If you are establishing permanent residency in a foreign country and can show you have clearly severed ties with NY, you may be able to skip the intermediate state option if you can meet Group A or Group B exceptions in full (need to meet all 3.)
Note NY's nuance to whether you are a resident is based on your domicile: "Your New York domicile does not change until you can demonstrate that you have abandoned your New York domicile and established a new domicile outside New York State"
Check out this page and the items they link to:
https://www.tax.ny.gov/pit/file/pit_definitions.htm