Ellison went on to write an entire book griping about this, and the book included his original script.
Shatner later wrote a series of scifi novels - TekWar - about 22nd century microchip drugs.
https://en.wikipedia.org/wiki/TekWar
"The 22nd century universe is centered on "Tek"—an illegal, addictive, mind-altering digital drug in the form of a microchip. The drug creates a simulated reality (and in the films and TV series taps into "the matrix" hyperspace). The protagonist, Jake Cardigan, is a former police officer framed for dealing the drug four years prior to the start of the first novel. Having been sentenced to 15 years' cryo-imprisonment, his release is brought forward by Walt Bascom, the head of private investigation agency Cosmos, who has uncovered the framed charges and exonerates him. In return Bascom wishes to employ him as an expert in a series of Tek-related crimes, mostly in Greater Los Angeles, referred to as "GLA". In the first few novels Cardigan is portrayed as a recovering Tek-user with several lapses, but this aspect diminishes as the novels progress - it is implied in later novels that to break the addiction for even a light user is impossible."