A lot of people are afraid to die but what is the essence of getting scared when you know that you will surely die, death is inescapable unpreventable, unpredictable, irreversible and inevitable. It affects all living things, making it universal, permanent, and certain. Ultimately, death is the final outcome of life.
After knowing all this, just face the reality and let go of fear, and appreciate the preciousness of life, and use time wisely.
Just have it at the back of your mind, that as you entered the world unknowingly, you'll depart similarly. Embrace this truth and focus on living a meaningful life and cherish the moments of have.