Firstly I don't think there's anyone that would hear he/she is about to die and start jumping up and down, even when we say life is hard yet nobody wants to die, lols. We want to go to heaven but we don't want to die, hmm. Death is inevitable, meaning everyone is going to die someday, we should just do our best to live a good life.
Moreover if we should know when we'll die, I think some people will misuse that opportunity by doing wicked and evil things all their life and change afterwards when their time of death is near. Anyways God is wiser than man so He kept this from us.
Nevertheless, lets say I know I have only 24 hours left to live, I will do my best in doing the following;
Spend quality time with my family...
It will be a very painful moment for me because I wouldn't want to leave, but because there's no other option, I'll try to spend that last moment with them judiciously, though it won't be enough because before you know it, 24hrs is gone. I'll use this time to also make amends with the people have offended or that has offended me, reconciliation is very important. With this I think I'll have a free mind.
Make my asset known to my family...
While spending time with them I'll let them know about all I've acquired both offline and online, so my case won't be like someone who died and also perish with his wealth, his family members were not aware of the money he had online, they could only gain access to his bank account, meanwhile his online asset is way more than his bank account.
It will be very wise to let them know everything.
Spend quality time with God...
This is also very important, after spending time with my family and friends, I'll like to be with my maker alone probably in my room asking for forgiveness and singing praises to His name till death comes.
By and large I hope we all live long and also live a good life before we see death.
NB: Image uploaded was designed with canva.