Jacob Trouba is finally out of New York after months of public trade rumors and private threats from the Rangers, who were determined to get rid of their captain and his massive contract.

Trouba was not pleased with the way he was run out of town, but he says he’s quite happy to land with the Anaheim Ducks.

“It’s a rite of passage to get fired from MSG,” Trouba said Friday after the Ducks acquired the veteran defenseman in exchange for defenseman Urho Vaakanainen and a conditional fourth-round pick in 2025.

The trade ends the 30-year-old Trouba’s five-year tenure with the Rangers. He has been a fixture in trade rumors for months, and he acknowledged that the uncertainty affected his play this fall.

“Don’t like that it was made public necessarily, but I guess that’s New York and how it happens,” Trouba said. “Made it kind of hard to play, but I’m excited to move forward. In my opinion, things could have been handled better. Not blaming anybody or anything, but it was just kind of an unfortunate end to my time in New York.”

Rangers general manager Chris Drury hasn’t tried to hide his desire for a roster reboot since the summer, and Trouba is in the sixth season of a seven-year, $56 million contract. The physical blueliner’s hefty deal has been an impediment to the movement New York wanted so desperately, and Trouba also had a robust no-trade clause.

In a conference call set up by the Ducks to welcome their new defenseman, Trouba essentially confirmed the long-rumored details of his New York saga, including his decision to nix a trade — reportedly to Detroit — last summer. He did it to support his wife, Kelly, who is completing her three-year medical residency at a New York hospital.

Trouba also confirmed that the Rangers told him this week to accept a trade or be scratched. He also indicated he was told he eventually would be placed on waivers, removing his ability to control where he landed next.

“Yesterday morning was, ‘Accept this trade or we’re scratching you,’” Trouba said. “Got to the place where I felt comfortable with Anaheim, and that was the place I wanted to go.”

Trouba will join the last-place Ducks in Montreal on Monday for the opener of a four-game trip.

“I can tell you — and I said this to him — I thought while he was here and during our time here he was a really good player and a really good teammate. A good person,” New York coach Peter Laviolette said after Friday night’s 4-2 victory over Pittsburgh. “I thought he worked hard and tried to set a good example for the New York Rangers.”

The Ducks can accommodate the final 1 1/2 years of Trouba’s deal because they have one of the NHL’s lowest payrolls and ample salary cap space after general manager Pat Verbeek failed to land any top free agents last summer.

Shesterkin becomes highest-paid goalie

Igor Shesterkin’s contract extension with the New York Rangers makes him the highest-paid goaltender in NHL history, according to multiple reports.

The team announced the eight-year extension on Saturday, but did not provide the value of the deal in its release. It is reportedly worth $92 million for an average annual value of $11.5 million. That tops Carey Price’s eight-year, $84 million deal he signed with Montreal in 2017 as the richest for a goalie.

Shesterkin, who turns 29 on Dec. 30, won the Vezina Trophy as the NHL’s top goalie in 2021-22 and he has backstopped the Rangers to the Eastern Conference final twice.

Tortorella criticizes officiating after loss

Philadelphia Flyers coach John Tortorella was frustrated with a couple of calls during a 4-3 overtime loss to the Boston Bruins on Saturday.

“Let me start: One thing I teach my team to do is not dive,” he said in opening his postgame press conference. “Maybe I should start teaching them that. The way this has gone here ... maybe I should teach them to dive.”

The Flyers were called for two tripping penalties — neither of them led to goals — in the third period. They also were whistled for a tripping that led to a goal in the second.

Boston scored twice in the third period of its fourth consecutive win. Philadelphia blew a third-period lead for the second straight game.