Have to get them inside. Exploding a nuke in a vacuum greatly diminishes it’s effectiveness.
I did always wonder about the physics of exploding a nuke in space.