This is not such a harmless habit, especially considering the fact that the wires may be live.
To avoid trouble, the pet needs to be trained, but it is easier to find out why the cat needs it at all. After all, the wires are absolutely tasteless and do not smell.
To understand how to wean a cat from chewing wires, you need to understand why he does it, and the answer will come by itself.
1. Out of boredom. If the animal has its own toy, and not just one, then instead of risking its health, the cat will play and you will forget about the problem.
2. It is possible that toys appeared later than the animal became addicted to cable products. In this case, wrap the wires with electrical tape if there is no way to hide them, and then treat them with special compounds that cats do not like the smell.
3. It is possible that the reason is improper nutrition. It is possible that the animal has something wrong with its teeth due to a lack of certain substances. As a result, the pet has a desire to chew on something.
Instead of arguing, you need to see a veterinarian and change your pet's diet.
And the most important thing is not to provoke the cat to violate the house rules. Hide the wires away. You can use a cable channel and other industrial developments.