Example usage:
JavaScript:
const minimap = require('./libs/Xaero.js');
const waypoints = minimap.getWaypoints("minecraft:overworld");
if (waypoints.length > 0) {
print("First waypoint: " + waypoints[0].name);
// Remove first waypoint (index0)
minimap.removeWaypoint("minecraft:overworld", 0);
}