Talk to the employer. Find out if they withheld local tax for NYC for all of 2022 or if they stopped withholding when you told them you moved. That amount in box 20 shows how much was withheld in the tax year but does not indicate how many months the employer withheld it over. You might need to file a part year city return to recover some from the city.
**Disclaimer: Every effort has been made to offer the most correct information possible. The poster disclaims any legal responsibility for the accuracy of the information that is contained in this post.**