I’m a CAD citizen who lived in the US until June 2018. After I left, I worked part time and received a 1099 from my NY employer. Do I pay tax on this federally and to NY?