Boston Bruins fans can exhale: David Pastrnak will be in the Black and Gold for the long term.

The B’s and the 21-year-old star in the making finally found common ground on a six-year, $40 million contract extension Thursday, the team announced. TSN’s Darren Dreger was the first to report the news.

Pastrnak, who was a restricted free agent entering the summer, also secured a no-trade clause for the fifth and sixth years of the contract, Sportsnet’s Chris Johnston reported.

News of Pastrnak’s extension comes on the same day the Bruins open training camp for the 2017-18 season.

The Bruins took Pastrnak with the 25th pick in the first round of the 2014 NHL Draft, and he’s been a relative steal. He’s coming off far and away the best season of his young career in 2016-17, in which he scored 72 points (34 goals and 36 assists) in 75 games as a nearly point-per-game player. The Czech Republic native also solidified himself as a power-play weapon, posting 24 points (10 goals, 14 assists) on the man-advantage.

Four players to watch entering Bruins training camp >>

Thumbnail photo via Winslow Townson/USA TODAY Sports Images