Because New York is your resident state, you are taxed in New York no matter where you earn it. However, to limit the effect of this double-taxation, New York will allow you to claim a credit for the taxes you pay to Virginia on the income earned in Virginia. You cannot exclude the income from your New York return, however.