Last year, I lived in PA, but worked in NJ and I owed a lot of money on my taxes (over $6k.) Did I need to file a schedule G form to be credited for my taxes?

Living in PA, Working in NJ