Actress Heather Locklear. Photo by Jordan Strauss/Invision/AP, File

American actress Heather Locklear has claimed that recovery is "the best revenge" for addiction.

The 56-year-old actress - who is said to have checked herself into rehab in July - has taken to her Instagram account to post a heartfelt message about someone close to her who died after fighting an addiction.

She wrote: "Addiction is ferocious and will try to take you down. Recovery is the best revenge. Be kind to everyone you meet, your light just might change their path. Rest in peace beautiful Josh. You touched my [heart emoji] (sic)"

Heather was hospitalised back in June after allegedly taking an overdose.

The 'Melrose Place' actress was reportedly taken by ambulance from her home in Thousand Oaks, California, to a nearby medical facility.

Heather was said to have been planning to check herself in for treatment but seemingly overdosed just hours after she was bailed out of jail for allegedly punching an officer and kicking a paramedic.

Officers were reportedly alerted to the situation by a family member, who informed them of a disturbance near her home.

The actress was said to have been heavily intoxicated at the time of the call, according to TMZ, which reported she was visibly angry when the law enforcement officers arrived at the scene.

Heather had to be separated from members of her family by a deputy, and she then reportedly threw a punch in the midst of the dispute.

Paramedics arrived on the scene and they put Heather on a gurney, but she allegedly responded to their help by kicking an emergency medical technician.

Heather was initially taken to hospital to receive treatment, and she was later taken to jail, where she was held on $20,000 bail.