How do you add a core twig extension in plugins using addTwigExtension()?
The Twig extension package is not included with your Craft install. So you need to download it and add it to your Craft plugin manually.