HSA Taxable Disbribution--Taxable in New York or Connecticut

In 2019, I worked exclusively in New York State, but live in Connecticut. I had to withdraw contributions I made to my HSA in 2019 because I had to go on Medicare. All of the money that I withdrew is taxable, and was either deposited in my HSA account directly from my payroll contributions through my New York State employer and from separate contributions made by my New York employer. When I fill out my NY tax forms, do I include this 1099 HSA income as NY state taxable income? Or, instead, do I declare this as Connecticut state income?