Theoretically, what would be the closest one planet could safely exist away from another?
Do you mean "in their orbits", or do you mean "sitting next to each other" (such as a double planet system)?
In their orbits, the closer they are the less long-term stability they'll have.
If orbiting each other, they'll have to be outside the Roche limit (wiki this).
Separate names with a comma.