NJ...you guessed it...
NJ is a retreat state, although their laws around it are pretty muddy.
You must retreat "if possible", you needn't retreat if the encounter was "sudden, and the force used was necessary", but then theres some additional cryptic nonsense about not using force if they demand you abstain from taking some action you have no duty to take, etc, etc etc.
You are not required to actually retreat FROM your house, but the idea is that you have to let the bad guy chase you into the furthest closet before you can use force.
Of course, with vulnerable family members in the house, another clause kicks in, being allowed to defend them....or maybe I have to round them all up drag them into the closet with me...who knows.
It's a mess.