Aircraft typically have static discharge points on the wings and trailing edges of the airframe, where you have some carbon fibre bundles and sharp stainless steel wires attached to the frame with a very good electrical connection, so that the arc discharge from lightning strikes will vapourise this point in preference to other more vital points.
Space craft simply use discharge points outside the metal frame, so as to reduce the build up of charge. Internal systems are inside a Faraday cage made from the outer shell, you simply make sure all metal parts like antennas and solar panel mounting parts have a DC connection that can handle high current flows as they get charged from either protons or electrons floating in space, and the discharge points are there to more or less equalise the charge distribution around the craft.
If you have a long tether or arm, and place a discharge point on the end, and charge it to a high negative voltage, with the main body also having equalising discharge points, you can get a thrust from the electrons emitted from the high voltage corona, which has been used for station keeping on some craft. If you want higher thrust you use Xenon gas, and charge it positively and use an ion gun to fire it out, along with an electron gun co linear to neutralise the craft charge.