The input to SuanShu Ljung-Box test is just a time series. As you pointed out, we normally pass in the residuals of the fitted time series.
In SuanShu, there is no call to compute the residuals at the moment. The user needs to compute them on their own (for now). We added this feature to the TODOs.