That isn't for SugarCube, that's for Sugarcane and the other original/default Twine 1 formats. You can try using typed.js instead; TME has an "integration module" for it on the main SugarCube page (under add-ons). It's probably a better solution than trying to update a dusty old Sugarcane script. It's easy to use, too, and works basically how you describe, using
@@.typed;
Typed text.
Blah blah blah.
@@