Being healthy and fit. Having a strong immune system. Gut health. Eating healthy and well. Getting good sleep. Proactively taking care of your body and mental health.
CBT Therapy is very good. Teaching one that, one's perspective is everything.
Being social, having positive friends.
If there was one book, that changed my mindset from a negative thinker to a positive thinker. Think and Grow Rich, by Napoleon Hill.
And the secret sauce to high performance. Adderall. Alpha-GPC is also very good and worthwhile to try first.