They are both fine, and there is very little difference in meaning between them.
The second one (the present continuous form) suggests that the speaker knows that the other person's period of residence in New York is/was temporary, but the difference is quite subtle.