MZ How to add Item Costs to Skills with VisuStella SkillsStatesCore?

I'm trying to add item costs to my skills, but when I go through the help section & plugin parameters, there's no notetags or options to apply an item cost to a skill. The only method it offers is built-in cost types, all of which requires JS coding, which I don't know how to. I looked through the built-in "Potion" cost type to see where it specifies the item in order to change the item in it's cost, but I couldn't find it anywhere. It's basically like looking for a needle in a haystack.

I have the old YEP_X_SkillCostItems plugin for MV, and it offers notetags that are simple to use.

* Skill Notetags:
* <Item x Cost: y>
* <Weapon x Cost: y>
* <Armor x Cost: y>

* <Item Cost: x Potion>
* <Item Cost: x Sword>
* <Item Cost: x Feather Cap>

See, no JS coding necessary. I don't know why VisuStella decided to make the method far more complicated than needed, but this nonsense is making me want to quit RPG Maker.

Does anyone know a simple way to add item costs to skills, either with VS SkillsStatesCore or with another plugin?
The notetag you need to put in the Skill note box is the following:

<type Cost: x>
<type Cost: x%>

You have to replace the "Cost" with the name you have defined in the skill cost settings (for example "Potion").

For the Java Script part: You can use the potion example as a reference. Which you mostly need to do is the change every line where it says "Potion" to the name you want to use. So for example:

JavaScript:
// Calculations
const note = skill.note;
if (note.match(/<Potion COST:[ ](\d+)>/i)) {
    cost += Number(RegExp.$1);

you change "Potion COST" to "Apple COST". You do that for all other code parts.

For the item you want to use from the database, you will find this (for example in the JS: Can Pay Cost? parameter at the very top):

JavaScript:
const item = $dataItems[21];

Simply change the number to the corresponding ID you want to use from the database.

I think that should be the general gist of it. You can then adjust the costs with the additional notetags listed in the help file.
I looked through the built-in "Potion" cost type to see where it specifies the item in order to change the item in it's cost, but I couldn't find it anywhere.
It's in the plugin parameters. You can see screenshots in the instructions if you look through the contents for Plugin Parameters -> Skill Cost Types

Original thread: https://forums.rpgmakerweb.com/threads/how-to-add-item-costs-to-skills-with-visustella-skillsstatescore.149950/