NY-SDI & NY-PFL vs. NJ-SDI & NJ-PFL

It is confusing NY-SDI & NY-PFL vs. NJ-SDI & NJ-PFL since my spouse works in NYC while we are NJ residents. Can an expert explain how they should be reported in the taxes?