function assignedError(
	varName,
	suggestions = [],
	additional = "",
	type = "Identifier",
) {
	return {
		messageId: "unusedVar",
		data: {
			varName,
			action: "assigned a value",
			additional,
		},
		type,
		suggestions,
	};
}
Returns an expected error for assigned-but-not-used variables.
@param {string} varName The name of the variable
@param {Array} suggestions The suggestions for the unused variable
@param {string} [additional] The additional text for the message data
@param {string} [type] The node type (defaults to "Identifier")
@returns {Object} An expected error object