Social media giant X said it expects Brazil's top court to order it to shut down, as a pitched legal battle plays out over compliance with local laws and owner Elon Musk's insistence the platform is being punished for resisting censorship.
X said it expects Supreme Court Judge Alexandre de Moraes to order the shutdown "soon," after a court-imposed deadline for the company to identify a legal representative in Brazil passedon Thursday evening.
Just before midnight, X was still working normally in the country.
Earlier on Thursday, the Supreme Court blocked the local bank accounts of billionaire Musk's Starlink satellite internet firm, while the underlying feud over X put it on the brink of being shuttered in one of its top markets.
The two firms are part of Musk's sprawling business empire which also includes rocket company SpaceX and electric car giant Tesla. The billionaire owns X and 40 per cent of SpaceX, and is the CEO of Tesla.
In a series of Thursday night comments on X, Musk lashed out at Moraes, labeling the judge an "evil dictator" in a newly pinned post. He also decried the ruling to block Starlink as illegal, and claimed the action "improperly" punishes other shareholders as well as ordinary Brazilians.
Musk also announced that Starlink-parent SpaceX will provide free internet service to Brazilian users "until this matter is resolved."
Signed by Moraes, the court's decision to sanction Starlink is a response to the lack of legal representatives in Brazil for X, a Supreme Court source told Reuters.
The decision to freeze Starlink's bank accounts also stems from a separate dispute over unpaid fines that X was ordered to pay due to its failure to turn over some documents. Local newspaper Folha has reported the fines total at least 20 million reais (AED 13.2 million), but Reuters was not able to confirm the amount.
Brazilian law requires all internet companies to have a legal representative in the country who can receive judicial orders and otherwise be legally responsible for the business.
X, formerly known as Twitter, is widely used in Brazil, and is an important means of communication in particular for politicians.

Philippines confirms visit by alleged Bondi gunmen amid terrorism concerns
Israeli forces kill Palestinian teen in West Bank, health ministry says
Trump sues BBC for defamation, seeks up to $10 billion in damages
FBI foils 'terror plot' targeting Los Angeles
Hong Kong court finds tycoon Jimmy Lai guilty in landmark security trial
