I don't think there's a set method getSafeTile or something of those sorts, or even npc.getSafeDistance, so you'd have to manually define a monsters wandering radius, and walk away that amount of tiles.
Then again, I don't know if it becomes slightly difficult if the npcs are ranged. Also, it...