As much as people deny it NPCs are still part of the RP environment of the game. There's nothing less immersive (except maybe Ivan452 going on a full OORP rant) than a swarm of NPCs trying to "attack" a player wielding pea shooters. RP is not only what players type but their actions too. In-RP it's perfectly sensible for a player under attack to move to an area with a bigger presence of friendly forces.
An ideal techical solution would be to somehow figure out how to trigger the "move to waypoint" game state that is currently triggered when a player accepts a mission through the console. If I remember correctly that state makes ambience NPCs turn neutral to the player.
Even then it would be a bit pointless to have NPCs as most of the people would disable them so maybe it should only work if there are multiple players nearby, or simply make it cost credits as yet another money sink.
In a lack of a better solution people just need to learn to deal with it, and systems need to learn to give PVPers zones where they can PvP with minimal interference.