I like the Tibetan take on this: We’re all going to die. Every day we live a little and die a little. We should aspire to live joyfully doing whatever is meaningful to us. And let things die throughout our lives. Holding on to possessions, people and ideas too tightly gets in the way of living.
Living joyfully can mean anything for you. One thing I like is struggling at hard programming problems. The struggle (and eventual success) feels great. The challenge is to accept that however I am - I’ll probably be like this until I die. And at some deep level be ok with that, and live my life enthusiastically anyway.
Do I sometimes spend a week or two playing games and “wasting time”? Yep. Maybe I’ll be like this until I die. The challenge is in accepting that that’s ok.