I don't think there is any advice as such to be taken from these sort of articles, but that is balanced by the fact that most people operate without any particular regard for the eventual certainty of death and if they reflect on it maybe they'll do something differently. Strategies and goals that make sense when rolled out to infinity do not always do so well over 100 years. Seeing what people value on their deathbed can be a source of inspiration for what did and didn't seem to work.
Although, in my view, there is no reason to perceive a dying person as having special insight. If insight matters it can be achieved at any age. Literally the best strategy I've seen in the face of death is just to relax, go with it and try not to get too attached to life. And that mindset offers no guidance at all on what is good to do with the time we have.