Standing ovation for the “Hacks” series finale.

HBO’s Emmy Award-winning comedy series ended after five seasons Thursday night and pulled a major switcheroo with Deborah Vance’s (Jean Smart) fate.

Warning: Spoilers ahead! Do not proceed unless you’ve watched the series finale of “Hacks.”

“Hacks” ended after five seasons on HBO Max on Thursday (Jean Smart and Hannah Einbinder are pictured in the show above). HBO“Hacks” ended after five seasons on HBO Max on Thursday (Jean Smart and Hannah Einbinder are pictured in the show above). HBO

The show didn’t kill off Deborah (Smart) in the finale. HBOThe show didn’t kill off Deborah (Smart) in the finale. HBO

Early in the episode, fans’ fears for Deborah became a reality, or so it seemed, when she told Ava (Hannah Einbinder) she had a cancerous mass that was spreading.

To make matters worse, Deborah refused to seek treatment.

Ava, as expected, didn’t take the news well, but Deborah wouldn’t budge on her decision, asking Ava to accompany her to an assisted suicide place in Switzerland where she wanted to die.

It took Ava some time before she begrudgingly agreed to join her friend and mentor on her “suicide mission.”

During the finale, Deborah told Ava (Einbinder) she had cancer and wouldn’t be seeking treatment.During the finale, Deborah told Ava (Einbinder) she had cancer and wouldn’t be seeking treatment.

Ava (Einbinder is pictured above) begrudgingly agreed to go with Deborah to an assisted suicide place in Switzerland. JAKE GILES NETTERAva (Einbinder is pictured above) begrudgingly agreed to go with Deborah to an assisted suicide place in Switzerland. JAKE GILES NETTER

They stopped in Paris first, where they went shopping, toured the Louvre (whilst mocking the Mona Lisa) and went dancing at a club.

But when the fun wore off, Ava again confronted Deborah over her decision to die.

After being a bit sidelined for the final season, Einbinder gave an outstanding, Emmy-worth performance, as Ava tearfully begged Deborah, “Please don’t leave me.”

“I’m sorry,” Deborah brutally responded.

True to her nature, Ava gave into Deborah’s wishes and backed off.

While in Paris, Ava and Deborah went shopping, toured the Louvre and went out dancing. Jake Giles Netter/MaxWhile in Paris, Ava and Deborah went shopping, toured the Louvre and went out dancing. Jake Giles Netter/Max

Ava again tried to convince Deborah to seek treatment, but she refused. Courtesy of MaxAva again tried to convince Deborah to seek treatment, but she refused. Courtesy of Max

By the time they were at the train station ready to head to Switzerland, Ava was at peace with Deborah’s decision— but it’s Deborah who changed her mind, inspired by the pair bouncing around ideas for jokes about Deborah’s death.

“I don’t have 30 years. But I think I have another hour,” Deborah told Ava, who agreed to help Deborah write the death joke.

In the show’s final moments, Ava and Deborah, who agreed to seek treatment, strolled around Las Vegas — the place where their special bond began.

However, Deborah eventually changed her mind after the pair bounced around ideas for jokes about Deborah’s death.However, Deborah eventually changed her mind after the pair bounced around ideas for jokes about Deborah’s death.

The finale ended with Deborah returning to Las Vegas with Ava and agreeing to seek treatment. Courtesy of MaxThe finale ended with Deborah returning to Las Vegas with Ava and agreeing to seek treatment. Courtesy of Max

Jimmy (Paul W. Downs) and Kayla (Meg Stalter) also got a celebratory ending to their story when they exposed Kayla’s dad Michael Schaeffer’s illegal activity at his talent agency Latitude.

Michael stepped down and handed over the company’s reigns to the dynamic duo, who united and inspired their employees during Jimmy’s remarkable keynote speech.

In a typical Kayla move, she refused to take the biggest office at the company, which she handed over to assistant Randi (Robby Hoffman) so she could sit closer to Jimmy.

The “Hacks” finale wasn’t perfect. There were few to almost no big, splashy moments, Deborah’s zingers were limited, and some of the supporting characters, like Damien (Mark Indelicato) and Josefina (Rose Abdoo), were underutilized.

But the ending still stuck the landing because Deborah and Ava’s relationship was the show’s magic all along.

Meanwhile, Jimmy (Paul W. Downs) and Kayla (Meg Stalter) took over Latitude after exposing Kayla’s dad’s illegal activity at the company (Downs, Stalter and Robby Hoffman are pictured above). HBOMeanwhile, Jimmy (Paul W. Downs) and Kayla (Meg Stalter) took over Latitude after exposing Kayla’s dad’s illegal activity at the company (Downs, Stalter and Robby Hoffman are pictured above). HBO

“Hacks” premiered in 2021 and aired for five seasons on HBO Max (Rose Abdoo, Smart, Einbinder and Downs are seen above in the show). Jake Giles Netter/Max“Hacks” premiered in 2021 and aired for five seasons on HBO Max (Rose Abdoo, Smart, Einbinder and Downs are seen above in the show). Jake Giles Netter/Max

When the show premiered in 2021, they were introduced as polar-opposite women from different generations with one thing in common: their love of comedy.

Five seasons later, Deborah and Ava — and we the viewers — realized the comedy never really mattered. Their love for each other did. And it was a love story for the ages.

All five seasons of “Hacks” are streaming on HBO Max.