aircraft use trailing edge(wings,rudders,flaps,etc) to mount devices called static wicks which are flexable, carbon filled, small diameter tublar devices with many small
hair like whiskers at the end that is opposite the attachment point.
Helicopters attach these to the main and tail rotors in addition to the structure.
There is an empirical relationship (estimate) that the airlines use to estimate the number of wicks required to dissipate a static charge which is a function of air speed
and wing span.
Even with wicks there have been cases where helicopters using cables and hooks (logging operations for example)
where it is hovering to ground level where a ground person grabs the hook and receives a tremendous shock. Enough in some cases to require hospitalization.
The next time you are around an aircraft you can see the wicks on the wings trailing edge and horizontal stabilizer.
the most common problem with commerical and civil aircraft
not protected with wicks is noise (static) on the headset.