State tax filing

I have lived in New York for the entirety of 2020. Instead of giving me a W2c for a refund, my employer told me to get the refund by filing a non resident tax for NJ