$import
Import additional JS/JSX files inside a script package.
$import(path)
Example
// ScriptWidget
// https://xnu.app/scriptwidget
//
// import other js/jsx files
//
$import("util.jsx");
$import("define.js");
$render(
<vstack>
<text font="title">test</text>
{textItems}
<text font="title">{sum(1, 2)}</text>
</vstack>
);
HealthKit and Location data are only available after user authorization in the main app. Widgets may show cached or fallback data.