The only thing you can do is let them know how sorry you are for their loss and that you are there for them if/when they need someone to talk to, or just lean on. Keep them company and check on them often, be a friend. Hug them, and let them know that you are there. Nothing can take the pain away, but knowing someone is there for you and that you have someone to go to when things get hard can be a comfort.