New York Jets star Brandon Marshall’s best friend offered in a text message to “take the blame” for a punch Marshall claims he never threw, according to testimony Wednesday in a Manhattan federal court suit filed by a California woman over a nightclub incident.

The offer came in a text from the friend, college roommate and former Jacksonville Jaguars receiver Michael Sims-Walker, in February as trial approached on the lawsuit by Christen Myles over a 2012 incident at the Marquee nightclub in Manhattan.

“If I need to I’ll take the blame, say I hit her,” according to a deposition of Sims-Walker read to jurors in which he acknowledged the text to Marshall.

In another text to Marshall, he referred to the NYPD’s decision to not file charges over the incident. “Man we got to be smart. We already won the criminal charge,” he wrote.

But Sims-Walker, during the deposition, insisted that Marshall in fact did not hit Myles, and said the texts showed he worried about the risks of trial and was offering to protect his friend.

“Brandon has a lot to lose,” Sims-Walker said. “I don’t. So hey, worst case scenario, say I hit her.”

advertisement | advertise on newsday

Myles said an altercation inside the club that did not involve her spilled outside, and Marshall — whose wife had been hurt — punched her in the eye when she got in Sims-Walker’s face.

Both sides are relying on grainy security tapes, which Myles says show Marshall hitting her and Marshall says don’t. Marshall’s lawyer told jurors that Myles may have been hit by someone, but not Marshall, and she accused him because he was an NFL star.

The all-pro wide receiver took the witness stand himself late Wednesday, but discussed only the fight inside the club. His testimony is scheduled to resume on Thursday.