The easiest way is just to copy and paste the function's code into your script somewhere (I prefer the end of the script, but it technically doesn't matter). KiXtart parses the script when it is run, and anything inside Function...EndFunction blocks gets treated as if it's a built-in KiXtart function.