Now the question would be how can I manipulate those IDs with my variables.
it's the other way around. You misread how this works
you set these IDs to tell the plugin which switches and variables to change.
If for example you set the night switch ID to 99, then the time plugin will turn on the switch 99 whenever it becomes night and turn it off the next morning.
You need to name the switches whose IDs you have choosen for the plugin to make sure that they will not be used by something else, because the plugin will control those switches according to its programming.
And then you can use them to do whatever you want and however you want your eventing to react to them by simply use the same switches in conditions.
For example if you have a NPC-event that should have a working clothes sprite in the day and a nightwear sprite in the night, then you make it a two-page-event with the second page for the night sprite and conditioned to the night switch that you configured. And the sprite will automatically switch pages whenever the plugin tells it that it is now night by switching on the night switch.