It’s about time.

Huma Abedin — repeatedly humiliated by disgraced sext-a-holic hubby Anthony Weiner — finally sued for divorce Friday.

Abedin’s lawyers filed the papers, captioned “Anonymous vs. Anonymous,” in Manhattan Supreme Court just hours after a weepy Weiner walked into nearby federal court — still wearing his wedding ring — and pleaded guilty to sexting with a minor.

Abedin had originally filed for an uncontested divorce, but then soon amended her papers to say “contested” — suggesting that Weiner decided at the last minute not to sign on the dotted line.

Now, the two will likely face a long, costly court battle, experts predicted.

Not so much over money — Abedin, a longtime close aide to Hillary Clinton, is apparently between jobs, and Weiner has lost at least four jobs in the six years since his first sexting scandal.

Experts said the fight will be over visitation for their 5-year-old son, Jordan.

Given Weiner’s guilty plea in federal court, it’s a fight in which Abedin holds the cards — though as the moneyed spouse, she may have to pay at least Weiner’s legal bills for the years it takes to hash out an agreement.

“She certainly has a leg up now on any custody battle, said Manhattan divorce lawyer Michael Stutman.

Manhattan divorce attorney Suzanne Kimberly Bracker added of Weiner, “He pleaded guilty — no judge will allow him to have unsupervised visitation.

“He should just agree to that now,” Bracker said.

“His contesting the divorce is another example of his self-defeating personality disorder,” she said.

“He’s going to ruin his family financially — if it’s contested, it’s going to cost over $100,000, easily.”

It’s been a long road to splitsville for Abedin.

She had stood by the much-mocked former congressman since 2011, when, a year into their marriage, he tearfully admitted Tweeting out an underwear selfie.

She stood at his side literally in 2013, at a press conference after Weiner self-scuttled his mayoral candidacy by getting caught continuing to sext with multiple women.

“I love him, I’ve forgiven him, I believe in him,” she told reporters.

Even last year, when Weiner got caught sending yet another underwear selfie — with then-3-year-old Jordan asleep at his hip — Abedin refrained from divorce.

But her timing in filing the papers now makes good sense, experts said.

So long as she remained “Mrs. Weiner,” Abedin could claim spousal protection and dodge taking the stand in her husband’s underage sexting case.

Now that Weiner has pleaded guilty, there can be no trial — so she has no need for the spousal protection.

Abedin is repped by Charles Miller of Boise Schiller Flexner. Miller did not return messages seeking comment.

A source told The Post that the firm’s DC lawyer, Karen Dunn — who prepped Hillary Clinton for the presidential debates — represented Abedin in connection with Weiner’s sexting prosecution.

Weiner does not yet have a divorce lawyer, according to court sources.

Another attorney for the firm, James Rossetti, was spotted by The Post waiting outside Manhattan Supreme Court Judge Michael Katz’s courtroom Friday afternoon — for an emergency hearing on the divorce proceeding.

Rossetti was bringing an application to seal the case as an “Anonymous versus Anonymous” proceeding, before he spotted members of the press and bolted.

Additional reporting by Kaja Whitehouse and Laura Italiano