The containing class is available as SQL\ListFormat in the www repository.
SQL\ListFormat
public function format_s( vec<string> $strs, ): string;
vec<string> $strs
string