Deductions & credits

@DanaB27 thanks, that makes sense. Since I received just one W2 for the whole of 2020, would I have to pro-rate the income for the time I was a non-resident? Or would I report the exact income mentioned in W2 for both my non-resident and resident returns? Wouldn't that result in getting taxes twice on it?