Like a pacemaker the external impulse is to help jerk the muscle as the tiredness sets in, not to directly provide energy. For direct energy consumption one can for example implant into legs small - just for several Newtons of force - electrically contracting kind of artificial tendon/muscle.