Freeze!

Justice was soft-served Wednesday when nearly 50 ice-cream trucks were seized by the city in Queens over an alleged multimillion-dollar ticket-avoidance scheme.

The New York Ice Cream-branded vehicles had racked up tens of thousands of dollars each in unpaid citations — but rather than dish out the dough, the owners simply dissolved the companies they were registered to and started new ones, a Civil Court complaint alleges.

New York Ice Cream founder Dimitrios Tsirkos — whose Long Island City company has been locked in a bitter turf war with Mister Softee — was named in the complaint, along with five others.

Tsirkos and his crew run 76 treat-mobiles that owe a combined $4.5 million for 22,495 unpaid summonses racked up between 2009 and 2017, the complaint said.

The tickets, mostly issued in Midtown, are for offenses including speeding, running red lights and illegally using bus lanes.

Officials started their crackdown Wednesday by scooping up the 46 trucks with the highest amount of unpaid fines — at least $10,000 apiece.

The complaint — which also names Athanasios Fotinakopoulos, Hele “Eleni” Fotinakopoulos, Tommy Dalageorgos, Michael A. Vasiadis and Antonio Tsatsaros as company honchos — lists nearly 100 shell companies with names such as Ice Boyz Inc., Softee Taste Corp., Meathead Inc. and D.L.T. Softex Corp., all of which Tsirkos “controls.”

The vehicles are being held in Sheriff’s Office custard-y, and the owners face a rocky road to get them back — they’ll have to pay off the mound of summonses topped with a sprinkling of additional fines, a Law Department spokesman said.

Officials wouldn’t say if they also face criminal prosecution.

“The civil component is complete and there are other components that the Sheriff’s Office will continue to investigate,” a law-enforcement source told The Post, revealing that the probe has been churning for more than a year.

It’s not the first time Tsirkos has been implicated in shady ice-cream dealings, either.

Mister Softee sued Tsirkos, a former franchisee, in 2014 for copyright infringement after he started a breakaway company called “Master Softee” with the same branding — and the two settled out of court.

A Mister Softee boss acknowledged the hit to New York Ice Cream spells a boon for his own company.

“I never want to be in a position where I’m excited about someone else’s misfortune but they were doing the wrong things here and operating in the wrong way — but yes it kinda presents a unique opportunity,” Mister Softee vice-president Jim Conway told The Post.

But New York Ice Cream drivers weren’t so thrilled.

“Yeah, they will be happy but I’m not happy about that,” groused one frustrated driver after he watched his meal-ticket get hauled off by sheriffs.

The worker claimed their bosses had told drivers they were paying the tickets — and then garnished wages of the drivers who incurred them.

Now dozens of drivers are left in the lurch just as the summer season is about to get into full swing.

“This is not good. I’m trying to make some money. I got a family, I have to support them,” said a driver of four years.

“I’m just angry because I’m not going to have a good summer. I work seven days a week for three months (in the summer). In the winter I’m going back to college … Now all my plans have changed.”

Tsirkos could not be reached for comment and a lawyer representing the ice cream mogul and five others did not return a request for comment.

Additional reporting by Angel Torres