HARTFORD, Conn. (WTNH) — Walmart proposed a $3.1 billion legal settlement on Tuesday over the toll of powerful prescription opioids sold at its pharmacies, becoming the latest major drug industry player to promise major support to state, local and tribal governments still grappling with a crisis in overdose deaths.

The retail giant’s announcement follows similar proposals on Nov. 2 from the two largest U.S. pharmacy chains, CVS Health and Walgreen Co., which each said they would pay about $5 billion.

Walmart said in a statement that it “strongly disputes” allegations in lawsuits from state and local governments that its pharmacies improperly filled prescriptions for the powerful prescription painkillers. The company does not admit liability with the settlement plan. The settlement would represent about 2% of its quarterly revenue.

“Walmart believes the settlement framework is in the best interest of all parties and will provide significant aid to communities across the country in the fight against the opioid crisis, with aid reaching state and local governments faster than any other nationwide opioid settlement to date,” the company said in a statement.

Connecticut Attorney General William Tong said in a release that the settlement will require significant improvements in how Walmart pharmacies handle opioids.

“This settlement delivers over $3 billion to fight the opioid addiction crisis, and forces strict improvements in Walmart’s practices,” Tong’s statement read. “Walmart pharmacies dispensed massive quantities of opioids into communities across Connecticut and nationwide. Their actions fueled the addiction crisis and caused unparalleled suffering and loss.”

The settlement will include:

  • $3.1 billion to be divided by states that sign on, local governments, and tribes, which must be used to provide treatment and recovery services to people struggling with opioid use disorder
  • Broad, court-ordered requirements, including robust oversight to prevent fraudulent prescriptions and flag suspicious prescriptions

Tong said the settlement will need to gain the support of 43 states by the end of 2022 so that local governments can join the deal during the first quarter of 2023.

More details about how the money will be distributed will be forthcoming, officials said.

The Associated Press contributed to this report.