SL Green Realty Corp. forked over $258.55 million to the clerk of the state Supreme Court yesterday to help joint venture partner Joseph Moinian pay off Deutsche Bank and retain his office building at 3 Columbus Circle.

Moinian has been fighting off a bank foreclosure and takeover attempt by rival Stephen Ross and the Related Cos.

The payment, along with $6 million in rent money Moinian’s lawyer, Stephen Meister, said is being held in escrow by the bank, should be enough for the bank to provide a satisfaction of the mortgage and walk away hand-in-hand with Ross — or keep litigating over a $54 million prepayment penalty without earning any more interest.

The formal tender offer, allowed under procedural court rules, gives Deutsche Bank 10 days to cash the check or keep going in court without more interest on the loan — currently racking up about $70,000 per day.

“They better be damned sure about their $54 million [prepayment penalty],” Meister said, of the additional amount central to the current litigation.

A representative of the bank declined to comment.