Boil the Guinness in a saucepan with the star anise (if using) over high heat until reduced by half. Add the remaining ingredients and simmer for 5 minutes, or until thick. Cool and remove the star anise. Store in a tightly closed container in the refrigerator for up to 1 week.