Jennifer Aniston got candid about her friendship with “Friends” co-star Matthew Perry and his 2023 death, telling Vanity Fair that she’s happy he’s no longer fighting addiction.

“We did everything we could when we could,” Aniston told Vanity Fair about trying to help Perry. “But it almost felt like we’d been mourning Matthew for a long time because his battle with that disease was a really hard one for him to fight. As hard as it was for all of us and for the fans, there’s a part of me that thinks this is better.”

She added, “I’m glad he’s out of that pain.”

Perry was found dead in 2023 in his hot tub. The medical examiner said ketamine was the main cause of Perry’s death. Perry was using ketamine to treat his depression, but he began seeking more ketamine outside of therapy. Salvador Plasencia, the doctor who supplied Perry with a large amount of ketamine starting about a month before his death, was one of five charged in connection with Perry’s passing. Plasencia pleaded guilty last month to four counts of distribution of ketamine.

During a 2021 reunion for “Friends,” Perry admitted he didn’t remember filming Seasons 3 through 6 because of his substance abuse. Perry told Diane Sawyer in a 2022 interview that he would go to open houses in Los Angeles and steal pills.