After a action potential is generated what causes the restoration of membrane potential from hyperpolarising phase to resting phase?

Thank you.