The third type of restlessness is mental restlessness. It is caused by ambition, strong thoughts, likes or dislikes. Knowledge alone can cure this restlessness. Seeing life from a broader perspective, knowledge about the Self and the impermanence of everything. If you achieve everything, so what?
After your achievement, you will die. Knowledge of your death or life, confidence in the Self, in the Divine, can all calm down the mental restlessness.
The fifth type of restlessness is rare. It is the restlessness of the soul. When everything feels empty and meaningless, know you are very fortunate. That longing and restlessness is the restlessness of the soul. Do not try to get rid of it.
Embrace it! Welcome it! Usually to get rid of it people do all sorts of things - they change places, jobs or partners, do this, do that. It seems to help for some time, but it does not last.
This restlessness of the soul alone can bring authentic prayer in you. It brings perfection, Siddhis and miracles in life. It is so precious to get that inner most longing for the Divine. Satsang, the presence of the enlightened one, soothes the restlessness of the soul.