NYC Wage tax for someone living in PA

A colleague and I will be working in NYC for 3 months this summer but we both live in Pennsylvania. I'm just wondering how NYC Wage taxes will work. Would that be an additional tax for us or would it somehow be credited against what would normally be withheld for our PA taxes?

 

Thanks in advance for any advice!