If it has been a while, and time is not crucial, I like to send a typed or handwritten letter by snail mail. A girl I knew well in college got stomach cancer. I hadn’t kept in touch since marrying, but the handwritten note meant a lot to her. She followed up with a phone call while she was clearly heavily medicated, but the letter set ip a proper goodbye.
Very sorry for the loss of your friend.