Answered
Time remapping a layer through script.
// Enable and configure time remapping
layer21.timeRemapEnabled.setValue(true);
var timeRemap = layer21.property("ADBE Time Remapping");
if (!timeRemap) throw new Error("Time Remapping property not available on Layer 21");