Theres a thread a while back that I posted with 2 family members (old) and a family friend (young) going through end of life type stuff. Everyone and every situation is different so theres no right advice but heres my experience.
For everyone its different but there were some funny situations that kept bring it up in my mind. I was asked to make a media box for the family friend, I bought a computer and then thought what on earth do I put on it? Happy movies, sad movies, emotional movies? I sat there trying to work out what I would want to do in the last few weeks of my life and how I would want other people to relate to me.
There were people who meant well but were more focused on themselves (what am *I* going to do when hes gone).
There were people that wouldnt let the person be sad, any time to convo touched on an unhappy thought they would jump in even when it was the person dying who wanted to discuss those topics.
The people who shone were the people that a) had been through it before b) realised that the best thing to do is look after the dying persons interests.
I think by talking about it to the person, explaining your feelings (concisely) and talking to them about their feelings then ultimately you do the best for that person and hopefully make yourself feel good enough about it while you come to terms with it.
I think I would want people to celebrate our good times together (cliché I know) and time with the important people to say goodbyes and maybe help them come to terms with things.
Then maybe I would watch movies as a distraction.
The one thing I would suggest is, without going overboard or anything, start a small list of things you want to do before your time comes to an end. I'm sure the last days/weeks/ months will be that much nicer if you look back at some cool experiences. Even my granny who is now in a dementia ward remembers some cool stuff she did when she was young and WWII had its moments too.